//package com.foton.websocket.config;
//
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.thymeleaf.templatemode.TemplateMode;
//
//@Configuration
//public class ThymeleafConfig {
//
//    @Bean
//    public TemplateResolver emailTemplateResolver() {
//        TemplateResolver resolver = new TemplateResolver();
//        resolver.setPrefix("/templates/");
//        resolver.setSuffix(".html");
//        resolver.setTemplateMode(TemplateMode.HTML);
//        resolver.setCharacterEncoding("UTF-8");
//        resolver.setCacheable(false); // 根据实际情况设置
//        return resolver;
//    }
//
//
//
//}
